
<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list"style="padding: 20px 30px 0 0;">

    <div class="layui-col-md12">
        <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <script type="text/html" template>
                    <input type="text" name="name" value="{{ d.params.name || '' }}"  autocomplete="off" class="layui-input">
                </script>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">图片</label>
            <div class="layui-input-inline">
                <script type="text/html" template>
                    <input type="text" name="image" value="{{ d.params.image || '' }}" id="banner-url" lay-verify="required" placeholder="图片地址" autocomplete="off" class="layui-input">
                </script>
            </div>
            <div class="layui-input-inline layui-btn-container" style="width: auto;">
                <button class="layui-btn layui-btn-primary" layadmin-event="uploadwidget" data-elem="banner">选择文件</button>
            </div>
            <label class="layui-form-label"> </label>
            <script type="text/html" template>
                <div class="layui-input-inline"><img id="banner-img" style="display: {{# d.params.image ? 'none':'block' }};max-width: 100%;" src="{{ d.params.image || '' }}"></div>
            </script>
        </div>

        <script type="text/html" template>
            <input type="hidden" name="id" value="{{ d.params.id || 0 }}">
        </script>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <div class="layui-footer">
                    <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
                </div>
            </div>
        </div>
    </div>
</div>
